package kr.hkit.powerjava.chapter12;

public class RemoteEx{
	public static void main(String[] args) {
		RemoteTest[] rt = new RemoteTest[2];
		Cars car = new Cars();
		Tv tv = new Tv();
		
		rt[0] = car;
		rt[1] = tv;
		
		for(RemoteTest r : rt){
			r.turnOn();
			r.trunOff();
		}
	}
}
